package com.ruoyi.project.shop.service;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.shop.domain.ShopInfo;
import com.ruoyi.project.shop.domain.ShopOperator;

import java.util.List;

public interface IShopInfoService {
    /**
     * 查询店铺列表
     * @param shop
     * @return
     */
    List<ShopInfo> selectShopList(ShopInfo shop);

    /**
     * 查询店铺明细
     * @param id
     * @return
     */
    ShopInfo selectShopById(String id);

    /**
     * 新增店铺
     * @param shop
     * @return
     */
    AjaxResult insertShop(ShopInfo shop);

    int importShop(List<ShopInfo> shopInfoList);

    int checkShopByAccount(ShopInfo shopInfo);

    /**
     * 修改店铺
     * @param shop
     * @return
     */
    AjaxResult updateShop(ShopInfo shop);

    /**
     * 删除店铺
     * @param id
     * @return
     */
    int deleteShop(String id);

    /**
     * 分配运营人员
     * @param operators
     * @return
     */
    AjaxResult assignOperators(List<ShopOperator> operators);

    /**
     * 转交店铺
     * @param operators
     * @return
     */
    AjaxResult transferOperators(List<ShopOperator> operators);
}
